package com.changhongit.service.wemeet;

import com.changhongit.utils.RequestSenderUtil;
import com.tencentcloudapi.wemeet.client.JsapiClient;
import com.tencentcloudapi.wemeet.common.exception.WemeetSdkException;
import com.tencentcloudapi.wemeet.models.jsapi.QueryUseridByACRequest;
import com.tencentcloudapi.wemeet.models.jsapi.QueryUseridByACResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class JsapiService {
    @Autowired
    RequestSenderUtil sender;


    public QueryUseridByACResponse getUserid(QueryUseridByACRequest request) throws WemeetSdkException {
        JsapiClient jsapiClient= new JsapiClient(sender.getProfile());
        QueryUseridByACResponse response = jsapiClient.getUserId(request);
        return response;
    }

}
